﻿<?php
if(!defined("IN_PHPSCUP"))exit("hacking");
class Checkimg
{


   
   function __construct()
   {
        $this->Checkimg();
   }

   function Checkimg()
   {

   include(ROOT_PATH ."/lib/image.lib.php");

   $string_yzimg=$this->check_rand(4);
   setcookie("yzImgNum","$string_yzimg");

   Image:: check_img($string_yzimg);
		

   }

function check_rand($lenth)
{
         $chars = "abcdefghikmnprstuvwxy3456789";
         $string = "";
         for ($i = 0; $i < $lenth; $i++) 
		 {
		 $string .= $chars[rand(0, strlen($chars) - 1)];
		 }
         return $string;
}

}




?>